home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / git-4.3 / git-4 / git-4.3.11 / Makefile.in < prev    next >
Encoding:
Makefile  |  1996-06-06  |  3.1 KB  |  151 lines

  1. ###
  2. ### Makefile for GNU Interactive Tools
  3. ###
  4.  
  5. ###
  6. ### Copyright (C) 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
  7. ###
  8. ### This program is  free software; you can  redistribute it and/or modify
  9. ### it under the terms  of the GNU General Public  License as published by
  10. ### the  Free Software Foundation; either version  2,  or (at your option)
  11. ### any later version.
  12. ### 
  13. ### This program is distributed  in the hope that  it will be  useful, but
  14. ### WITHOUT    ANY  WARRANTY;  without   even   the  implied  warranty  of
  15. ### MERCHANTABILITY  or  FITNESS FOR  A PARTICULAR   PURPOSE.  See the GNU
  16. ### General Public License for more details.
  17. ### 
  18. ### You should  have received a  copy of  the GNU  General Public  License
  19. ### along with   this  program; if   not,  write  to   the Free   Software
  20. ### Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21. ###
  22.  
  23.  
  24. PRODUCT        = "@PRODUCT@"
  25. VERSION        = "@VERSION@"
  26.  
  27.  
  28. srcdir        = @srcdir@
  29. VPATH        = @srcdir@
  30.  
  31. prefix        = @prefix@
  32. bindir        = $(prefix)/bin
  33. libdir        = $(prefix)/lib/git
  34. infodir        = $(prefix)/info
  35. mandir        = $(prefix)/man/man1
  36. termdir        = $(prefix)/lib/git/term
  37.  
  38. SHELL        = /bin/sh
  39. TAR        = tar
  40. GZIP        = gzip
  41. BASENAME    = basename
  42. HOST        = @HOST@
  43. SUBDIRS        = src info man term
  44.  
  45.  
  46. all:
  47.     @(\
  48.         echo "Making $(PRODUCT) $(VERSION)...";\
  49.         echo "Configured for $(HOST)";\
  50.     )
  51.     (cd src && $(MAKE) $@)
  52.  
  53. installdirs:
  54.     for dir in $(SUBDIRS);\
  55.     do\
  56.         (cd $$dir && $(MAKE) $@);\
  57.     done
  58.  
  59. info:    FORCE-info
  60.     @(\
  61.         echo "Making $(PRODUCT) $(VERSION) info documentation...";\
  62.         echo "Configured for $(HOST)";\
  63.     )
  64.     (cd info && $(MAKE) $@)
  65.  
  66. FORCE-info:
  67.  
  68. dvi:
  69.     (cd info && $(MAKE) $@)
  70.  
  71. install: all install-only
  72.  
  73. install-only:
  74.     @(\
  75.         echo "Installing $(PRODUCT) $(VERSION)...";\
  76.         echo "Configured for $(HOST)";\
  77.     )
  78.     $(MAKE) installdirs &&\
  79.     \
  80.     for dir in $(SUBDIRS);\
  81.     do\
  82.         (cd $$dir && $(MAKE) $@);\
  83.     done
  84.     @echo "Please see the README file for additional information"
  85.  
  86. install-strip:
  87.     @(\
  88.         echo "Installing $(PRODUCT) $(VERSION)...";\
  89.         echo "Configured for $(HOST)";\
  90.     )
  91.     $(MAKE) installdirs &&\
  92.     \
  93.     for dir in $(SUBDIRS);\
  94.     do\
  95.         (cd $$dir && $(MAKE) $@);\
  96.     done
  97.     @echo "Please see the README file for additional information"
  98.  
  99. dep:
  100.     (cd $(srcdir)/src && $(MAKE) $@)
  101.  
  102. distdone:
  103.     cd $(srcdir) && dir=`pwd` && cd ..;\
  104.     $(TAR) -cf - `$(BASENAME) $$dir` |\
  105.     $(GZIP) -9c > `$(BASENAME) $$dir`.tar.gz;\
  106.     \
  107.     if test $$? != 0; then\
  108.         exit 1;\
  109.     fi
  110.  
  111. dist:    dep tags info distclean distdone
  112.  
  113. uninstall:
  114.     @echo "Uninstalling $(PRODUCT) $(VERSION)..."
  115.     for dir in $(SUBDIRS);\
  116.     do\
  117.         (cd $$dir && $(MAKE) $@);\
  118.     done
  119.     @echo "Please remove the GIT entry from the Info dir file."
  120.  
  121. tags:
  122.     cd $(srcdir)/src && $(MAKE) $@
  123.  
  124. etags:
  125.     cd $(srcdir)/src && $(MAKE) $@
  126.  
  127. clean:
  128.     -rm -f *.o *~ core* tutu* gogu*;\
  129.     \
  130.     for dir in $(SUBDIRS);\
  131.     do\
  132.         (cd $$dir && $(MAKE) $@);\
  133.     done
  134.  
  135. mostlyclean: clean
  136.  
  137. distclean:
  138.     -rm -f Makefile config.status config.log config.cache config.h;\
  139.     rm -f version.h;\
  140.     \
  141.     for dir in $(SUBDIRS);\
  142.     do\
  143.         (cd $$dir && $(MAKE) $@);\
  144.     done
  145.  
  146. realclean: distclean
  147.  
  148. # Tell version [3.59,3.63) of GNU make not to export all variables.
  149. # Otherwise a system limit (for SysV at least) may be exceeded.
  150. .NOEXPORT:
  151.